package com.neiquan.backstage.region.web.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.neiquan.backstage.common.util.CommonResp;
import com.neiquan.backstage.region.RegionService;

@Controller
@RequestMapping(value = "region", produces = { "text/json;charset=UTF-8" })
public class RegionAction {
	@Autowired
	private RegionService regionService;

	@ResponseBody
	@RequestMapping("queryAllProvince")
	public String queryAllProvince() {
		return CommonResp.buildSuccessResp(regionService.queryAllProvince()).toJsonString();
	}
}
